﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace XQ.Framework.model
{
    public class ZTreeModel
    {
        public class Node
        {
            public string id { get; set; }
            public string name { get; set; }
            public List<Node> children { get; set; }
        }

        public List<Node> Root { get; set; }

        public string GetJson()
        {
            if (Root == null) { return string.Empty; }
            return XQ.Framework.io.text.JsonHelper.ObjectToJson(Root);
        }
    }
}
